package com.zhuojy.equity.mall.admin.dal.mapper.message;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zhuojy.equity.mall.admin.common.entity.po.TExpenseAccountPO;
import com.zhuojy.equity.mall.admin.common.entity.po.TInterviewRoundPO;
import com.zhuojy.equity.mall.admin.common.entity.po.TPositionMessagePO;
import com.zhuojy.equity.mall.admin.common.entity.vo.PositionMessageEntity;
import com.zhuojy.equity.mall.admin.common.entity.vo.TPositionMessageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author:LYL
 * @Date 2024/4/9 19:44
 */
@Mapper
public interface TPositionMessageMapper extends BaseMapper<TPositionMessagePO> {
    /**
     * @description:职位设置查询
     * @author: lyl
     * @date: 2024/4/14 19:57
     * @param: tPositionMessageVO
     * @param: pages
     * @return: com.baomidou.mybatisplus.core.metadata.IPage<com.zhuojy.equity.mall.admin.common.entity.vo.TPositionMessageVO>
     **/
    IPage<TPositionMessageVO> findPositionMessageFenYe(@Param("tPositionMessageVO") TPositionMessageVO tPositionMessageVO, @Param("Page") Page pages);
    /**
     * @description:停止招聘，修改状态
     * @author: lyl
     * @date: 2024/4/15 15:10
     * @param: tPositionMessageVO
     **/
    void updateStatusById(@Param("tPositionMessageVO") TPositionMessageVO tPositionMessageVO);
    /**
     * @description:根据职位设置id删除相关会议室和面试官
     * @author: lyl
     * @date: 2024/4/15 16:05
     * @param: id
     **/
    void delById(Long id);
    TPositionMessageVO findPositionMessageById(Long id);
    List<TInterviewRoundPO> findInterviewRound(Long id);
    List<PositionMessageEntity> getPositionMessageEntity();
    List<TPositionMessageVO> findPMessageAll();
}
